package com.meilai.project.mapper.reimburse;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.meilai.project.dto.finance.reimburse.ReimburseApplyListDTO;
import com.meilai.project.entity.finance.reimburse.ReimburseApply;
import com.meilai.project.vo.finance.reimburse.ReimburseApplyVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xhy
 * @since 2022-12-07
 */
public interface ReimburseApplyMapper extends BaseMapper<ReimburseApply> {

    ReimburseApplyVO getOneById(@Param("id") Long id);

    List<ReimburseApplyVO> selectPageList(Page<ReimburseApplyVO> page, @Param("query") ReimburseApplyListDTO searchDTO);

    List<ReimburseApplyVO> getListBySaleIds(@Param("ids") List<Long> ids);

    List<ReimburseApplyVO> getListByContractIds(@Param("ids") List<Long> ids);
}
